package com.spark.lola.service.sup;

import com.spark.lola.entity.sup.AccountCertificationApply;
import com.spark.lola.entity.sup.AccountInfo;
import com.spark.lola.request.RegisterRequest;
import com.spark.lola.support.mybatis.service.BaseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author dengyejun
 * @since 2020-05-06
 */
public interface IAccountInfoService extends BaseService<AccountInfo> {
    /**
     * 用户注册
     * @param request
     */
    AccountInfo register(RegisterRequest request) throws Exception;

    void registerCode(String username,String mobile) throws Exception;

    Boolean checkCode(String mobile,String code) throws Exception;

    void createCheckCode(String mobile) throws Exception;

    AccountCertificationApply authFail(Long id, String message) throws Exception;

    AccountCertificationApply authSuccess(Long id) throws Exception;
}
